//
//  PasswordTableViewCell.m
//  Daybook
//
//  Created by liutaifeng on 16/6/4.
//  Copyright © 2016年 zhangbin. All rights reserved.
//

#import "PasswordTableViewCell.h"
#import "Common.h"
@interface PasswordTableViewCell ()
@property (nonatomic, strong) UIView *lineView;
@end

@implementation PasswordTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}
- (void)createView {
    self.titleLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_titleLabel];
    
    self.lineView = [[UIView alloc] init];
    [self.contentView addSubview:_lineView];
    _lineView.backgroundColor = LINE_COLOR;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _titleLabel.frame = CGRectMake(10, 5, 100, self.contentView.frame.size.height - 10);
    _lineView.frame = CGRectMake(0, self.contentView.frame.size.height - 1, self.contentView.frame.size.width, 1);
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
